
<div id="reseller-wrapper">
	<?php include_once('reseller_menu_view.php'); ?>
	<div class="r-head">
		<div class="r-title">Accounts</div>
		<div id="rt-stats">
			<div class="rt-title">Total Purchased Accounts: <strong><?php echo $resellerStats->numAccounts ?></strong></div>
			<div class="rt-title">Registered: <strong><?php echo $resellerStats->numRegistered ?></strong></div>
			<div class="rt-title">Remaining: <strong><?php echo $resellerStats->numRemaining ?></strong></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<div>
		<table class="client-table" border="1">
			<thead>
				<tr>
					<td width="20">#</td>
					<td>Name</td>
					<td>Email</td>
					<td>Date Registered</td>
					<td>Code</td>
					<td>Enable</td>
				</tr>
				<?php if(!empty($accounts)){
						foreach($accounts as $k=>$acnt){ ?>
						<tr class="tr-ctable">
							<td align="right"><?php echo $k+1 ?></td>
							<td><?php echo $acnt->firstname.' '.$acnt->middle.' '.$acnt->lastname ?></td>
							<td><?php echo $acnt->email ?></td>
							<td align="center"><?php echo date('d/m/y',strtotime($acnt->date_added)) ?></td>
							<td><?php echo $acnt->code ?></td>
							<td align="center"><?php echo Boolean_helper::status($acnt->status, false, $acnt->customerid) ?></td>
						</tr>
				<?php	}
					 } ?>

			</thead>
			<tbody>
			</tbody>
		</table>
		</div>
	</div>
</div>